package com.an.vhr.mapper;

import com.an.vhr.bean.Employee;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Employee record);

    int insertSelective(Employee record);

    Employee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Employee record);

    int updateByPrimaryKey(Employee record);

    Long getTotal(@Param("emp")Employee employee,@Param("beginDateScope") Date[] beginDateScope);

    List<Employee> getEmpByPage(@Param("page")Integer page, @Param("size")Integer size, @Param("emp")Employee employee,@Param("beginDateScope") Date[] beginDateScope);

    Integer getMaxWorkId();

    Integer addEmps(List<Employee> list);

    Employee getEmpById(@Param("id") Integer id);

    List<Employee> getEmployeeWithSalaryPage(@Param("page") Integer page, @Param("size") Integer size);
}